public class Test01 {
    public static void main(String[] args) {

        int num=10;
        for (int i = 1; i <= num; i++) {//3行
            for (int j = 0; j < num-i; j++) {//每行空格数
                System.out.print(" ");
            }
            for (int k = 1; k <= 2 * i - 1; k++) {//每行空格后星星数
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
